GET PIXELS POINTER
This command in combination with LOCK PIXELS will return the pointer to the first pixel in the visual surface.
Return DWORD=GET PIXELS POINTER()
The value returned is a DWORD address pointer to the system memory used to store the screen pixels
You can use the indirect symbol to write and read using the value of this pointer. The indirect symbol is specified by placing a * character before the variable holding the pointer.
ptr as DWORD
LOCK PIXELS
ptr=GET PIXELS POINTER()
*ptr=255
UNLOCK PIXELS
WAIT KEY
BASIC2D Commands Menu
Index